package com.hvgroup.modules.sanic.repository;

import com.hvgroup.modules.sanic.domain.po.LlmModelConfigApi;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.Optional;

public interface LlmModelConfigApiRepository extends JpaRepository<LlmModelConfigApi, Long>, JpaSpecificationExecutor<LlmModelConfigApi> {

    Optional<LlmModelConfigApi> findFirstByPlatformIdAndApiGroupAndApiType(Long platformId, Integer apiGroup, Integer apiType);

}
